using System;
using System.Collections.Generic;
using System.Text;

namespace Sedna.Core.Persistence.Hql
{
    public class HqlOrderByClause: HqlClause
    {
        public HqlClause Add(string token, bool isAsc)
        {
            if (token!=null&&!String.Empty.Equals(token.Trim()))
            {
                Add(token + (isAsc ? " ASC" : " DESC"));
            }
            return this;
        }
    }
}
